package view;

import java.awt.Color;

import controller.Controller;

public class SideBar extends GamePanel {
	private static final long serialVersionUID = 1L;
	StatsDisplayPanel sdp;
	Minimap mm;
	
	public SideBar(Stage parent, Controller controller, int w, int h){
		super(parent, controller, w, h);
	}

	protected void init() {
		setLayout(null);
		setBackground(Color.darkGray);
		
		sdp = new StatsDisplayPanel(parent, controller, this.getWidth() - 10, this.getHeight()*2/3 - 10);
		sdp.setLocation(5, this.getHeight()*1/3 + 5);
		add(sdp);
		
		mm = new Minimap(parent, controller, (int)(getWidth() - 10), (int)(getHeight()*1/3 - 10));
		mm.setLocation(5, 5);
		add(mm);
	}

	@Override
	protected void update() {
		sdp.update();
		mm.update();
	}
}
